import React,{Component} from 'react';
import ReactDOM from 'react-dom';
import wrapLocalData from './wrapLocalData';
import wrapAjax from './wrapAjax';
let UserName=(props) => {
	console.log('UserName ',props);
	return <input type="text" value={props.data} />
}
let Password=(props) => {
	return <input type="text" value={props.data}/>
}
UserName=wrapAjax(UserName);
UserName=wrapLocalData(UserName,'username');
class Form extends Component{
	render() {
		return (
			<form>
				<UserName />
			</form>
		)
	}
}
ReactDOM.render(<Form/>,document.querySelector('#root'));